package com.guinea.skoru.service;
// Generated 2011-3-19 15:17:31 by Hibernate Tools 3.4.0.Beta1

import java.io.Serializable;
import java.util.List;

import com.guinea.core.orm.hibernate.HibernateDao;
import com.guinea.core.service.CRUDManager;
import com.guinea.skoru.dao.SkoruExperienceDao;
import com.guinea.skoru.entity.SkoruExperience;

public class SkoruExperienceManager extends CRUDManager {

	private SkoruExperienceDao skoruExperienceDao;

	public HibernateDao getEntityDao() {
		return getSkoruExperienceDao();
	}

	public SkoruExperience getSkoruExperience(Serializable id) {
		return (SkoruExperience)getSkoruExperienceDao().get(id);
	}

	public SkoruExperienceDao getSkoruExperienceDao() {
		return skoruExperienceDao;
	}

	public void setSkoruExperienceDao(SkoruExperienceDao skoruExperienceDao) {
		this.skoruExperienceDao = skoruExperienceDao;
	}
	public List findExperiences(Long resumeId){
		return getSkoruExperienceDao().find("from SkoruExperience s where s.resumeId = ? and s.status = '1'",new Object[]{resumeId});
	}
}
